package com.da.javatest.leetCode;

/**
 * @author chenlida
 * @date 2019/1/21 11:43
 * @description
 */
public class Code342 {
    public static void main(String[] args) {
        System.out.println(4 / 4);
    }

    public boolean isPowerOfFour(int num) {
        if (num <= 0) {
            return false;
        }
        while (num % 4 == 0) {
            num >>= 2;
        }
        return num == 0;
    }
}
